﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using MaterialDesignColors.WpfExample.Domain;
using MaterialDesignThemes.Wpf;

namespace WpfApp1
{
    /// <summary>
    /// MessageBox.xaml 的交互逻辑
    /// </summary>
    public partial class MyMessageBox : Window
    {
        public MyMessageBox()
        {
            InitializeComponent();
        }

        private static string title = "";
        private static int type = 0;
        private static string msg = "";
        private string lang = "";


        public void  init(string title1,int type1,string msg1,string lang1)
        {
            title = title1;
            type = type1;
            msg = msg1;
            lang = lang1;
        }

        


        private void Window_Loaded(object sender, RoutedEventArgs e)
        {


            if (lang.Equals("ug"))
            {
                this.FlowDirection = FlowDirection.RightToLeft;
            }
            else
            {
                this.FlowDirection = FlowDirection.LeftToRight;
            }
            if (type == 0)
            {

            }
            
            lb_title.Text = title;
            r1.AppendText(msg);
            
            

        }
    }
}
